3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A cylinder is a three-dimensional object defined by an origin (that is, the center of the base) and three mutually perpendicular vectors that define the orientation and the major and minor radii of the cylinder. A cylinder is defined by the TQ3CylinderData data type. See "Creating and Editing Cylinders" for a description of the routines you can use to create and edit cylinders. Figure 32 shows a cylinder.
typedef struct TQ3CylinderData {
TQ3Point3D origin;
TQ3Vector3D orientation;
TQ3Vector3D majorRadius;
TQ3Vector3D minorRadius;
float uMin, uMax, vMin, vMax;
TQ3EndCap caps;
TQ3AttributeSet interiorAttributeSet;
TQ3AttributeSet topAttributeSet;
TQ3AttributeSet faceAttributeSet;
TQ3AttributeSet bottomAttributeSet;
TQ3AttributeSet cylinderAttributeSet;
} TQ3CylinderData;
Previous | QD3D Book | Overview | Chapter Contents | Next |